<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Msg
 *
 * @property integer $id
 * @property integer $user_id
 * @property string $system_msg
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @method static \Illuminate\Database\Query\Builder|\App\Msg whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Msg whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Msg whereSystemMsg($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Msg whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Msg whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Msg whereUpdatedAt($value)
 * @property-read \App\User $user
 */
class Msg extends Model
{
    protected $table = "system_msg";
    use SoftDeletes;

    public function user(){
        return $this->belongsTo('App\User','user_id');
    }
}